<template>
  <el-button className="v-button"
             v-bind="customizedAttrs"
             v-on="$listeners">
    {{ propValue }}
  </el-button>
</template>

<script>
export default {
  inheritAttrs:false,
  props: {
    size: {
      type: String,
      default: "medium",
    },
  },
  computed: {
    customizedAttrs() {
      return {
        size: "medium",
        // 支持传过来的size覆盖默认的size
        ...this.$attrs,
      };
    },
  },
}
</script>
